import calendar


def xcheck_leap(y):
    print(f'Year {y} is{" not" if not calendar.isleap(y) else ""} a leap year.')

xcheck_leap(2008)
xcheck_leap(2018)

print(calendar.leapdays(2000, 1 + 2024))


def xget_leap_years(start, end):
    xlist = []
    for i in range(start, end):
        if calendar.isleap(i):
            xlist.append(i)
    return xlist


xlist = xget_leap_years(2000, 1 + 2024)
print(xlist)
